package de.gameduell.net.src.message {
	import flash.events.Event;			

	/**
	 * @author GD
	 */
	public class MessageEvent extends Event {

		public static const MESSAGE_EXPIRED:String = "message expired";
		public static const MAX_RETRIES_REACHED:String = "maxRetries";
		public static const NEXT_MESSAGE:String = "nextmessage";
		
		private var _message:IMessage;
		
		public function MessageEvent(type:String,aMessage:IMessage,bubbles:Boolean = false, cancelable:Boolean = false ) {
			super(type, bubbles, cancelable);
			_message = aMessage;
		}

		public function get message():IMessage{
			return _message;
		}
	}
}
